#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include"assert.h"
/*void my_strcpy(char* dest, const char* src)
{
	while (*dest++ = *src++);
}
int main()
{
	char arr1[10] = "xxxxxxxx";
	char arr2[10];
	gets(arr2);
	
	//strcpy(arr1, arr2);
	my_strcpy(arr1, arr2);
	printf("%s", arr1);
}*/

//size_t==unsigned int

int my_strlen(const char*  p)
{
	assert(p);
	int num = 0;
	while (*p++ != '\0')
	{
		num++;
	}
	return num;
}
int main()
{
	char arr[] = "qwerty";
	printf("%d", my_strlen(arr));
}